home *** CD-ROM | disk | FTP | other *** search
/ Together in Jesus: 1st Reconciliation Computer Fun / Together in Jesus - First Reconciliation - Computer Fun.iso / word_snatcher_new.swf / scripts / frame_88 / DoAction.as
Text File  |  2007-11-27  |  6KB  |  264 lines

  1. this.heaven_mc.onPress = function()
  2. {
  3.    this.startDrag();
  4. };
  5. this.heaven2_mc.onPress = function()
  6. {
  7.    this.startDrag();
  8. };
  9. this.hallowed_mc.onPress = function()
  10. {
  11.    this.startDrag();
  12.    this.swapDepths(this.getNextHighestDepth());
  13. };
  14. this.name_mc.onPress = function()
  15. {
  16.    this.startDrag();
  17.    this.swapDepths(this.getNextHighestDepth());
  18. };
  19. this.kingdom_mc.onPress = function()
  20. {
  21.    this.startDrag();
  22.    this.swapDepths(this.getNextHighestDepth());
  23. };
  24. this.will_mc.onPress = function()
  25. {
  26.    this.startDrag();
  27.    this.swapDepths(this.getNextHighestDepth());
  28. };
  29. this.heaven_mc.onPress = function()
  30. {
  31.    this.startDrag();
  32.    this.swapDepths(this.getNextHighestDepth());
  33. };
  34. this.heaven2_mc.onPress = function()
  35. {
  36.    this.startDrag();
  37.    this.swapDepths(this.getNextHighestDepth());
  38. };
  39. this.bread_mc.onPress = function()
  40. {
  41.    this.startDrag();
  42.    this.swapDepths(this.getNextHighestDepth());
  43. };
  44. this.forgive_mc.onPress = function()
  45. {
  46.    this.startDrag();
  47.    this.swapDepths(this.getNextHighestDepth());
  48. };
  49. this.trespass_mc.onPress = function()
  50. {
  51.    this.startDrag();
  52.    this.swapDepths(this.getNextHighestDepth());
  53. };
  54. this.temptation_mc.onPress = function()
  55. {
  56.    this.startDrag();
  57.    this.swapDepths(this.getNextHighestDepth());
  58. };
  59. this.evil_mc.onPress = function()
  60. {
  61.    this.startDrag();
  62.    this.swapDepths(this.getNextHighestDepth());
  63. };
  64. this.heaven_mc.onRelease = function()
  65. {
  66.    this.stopDrag();
  67.    if(this.hitTest(target1_mc) == true)
  68.    {
  69.       soundTrumpet.start();
  70.       gotoAndStop(89);
  71.       heaven_mc._visible = false;
  72.       heaven2_mc.swapDepths(getNextHighestDepth());
  73.    }
  74.    else
  75.    {
  76.       soundMournfultrumpet.start();
  77.       heaven_mc._y = heaven1_mc._y;
  78.       heaven_mc._x = heaven1_mc._y;
  79.    }
  80. };
  81. this.hallowed_mc.onRelease = function()
  82. {
  83.    this.stopDrag();
  84.    if(this.hitTest(target2_mc) == true)
  85.    {
  86.       soundCheering1.start();
  87.       gotoAndStop(91);
  88.       hallowed_mc._y = hallowed1_mc._y;
  89.       hallowed_mc._x = hallowed1_mc._x;
  90.    }
  91.    else
  92.    {
  93.       soundMournfultrumpet.start();
  94.       hallowed_mc._y = hallowed1_mc._y;
  95.       hallowed_mc._x = hallowed1_mc._x;
  96.    }
  97. };
  98. this.name_mc.onRelease = function()
  99. {
  100.    this.stopDrag();
  101.    if(this.hitTest(target3_mc) == true)
  102.    {
  103.       soundTrumpet.start();
  104.       gotoAndStop(92);
  105.       name_mc._y = name1_mc._y;
  106.       name_mc._x = name1_mc._x;
  107.    }
  108.    else
  109.    {
  110.       soundBuoing.start();
  111.       name_mc._y = name1_mc._y;
  112.       name_mc._x = name1_mc._x;
  113.    }
  114. };
  115. this.kingdom_mc.onRelease = function()
  116. {
  117.    this.stopDrag();
  118.    if(this.hitTest(target4_mc) == true)
  119.    {
  120.       soundCheering1.start();
  121.       gotoAndStop(92);
  122.       kingdom_mc._y = kingdom1_mc._y;
  123.       kingdom_mc._x = kingdom1_mc._x;
  124.    }
  125.    else
  126.    {
  127.       soundCrash3.start();
  128.       kingdom_mc._y = kingdom1_mc._y;
  129.       kingdom_mc._x = kingdom1_mc._x;
  130.    }
  131. };
  132. this.will_mc.onRelease = function()
  133. {
  134.    this.stopDrag();
  135.    if(this.hitTest(target5_mc) == true)
  136.    {
  137.       soundTrumpet.start();
  138.       gotoAndStop(93);
  139.       will_mc._y = will4_mc._y;
  140.       will_mc._x = will4_mc._x;
  141.    }
  142.    else
  143.    {
  144.       soundCrash3.start();
  145.       will_mc._y = will4_mc._y;
  146.       will_mc._x = will4_mc._x;
  147.    }
  148. };
  149. this.heaven2_mc.onRelease = function()
  150. {
  151.    this.stopDrag();
  152.    if(this.hitTest(target6_mc) == true)
  153.    {
  154.       soundCheering1.start();
  155.       gotoAndStop(94);
  156.       heaven2_mc._y = heaven1_mc._y;
  157.       heaven2_mc._x = heaven1_mc._x;
  158.    }
  159.    else
  160.    {
  161.       soundMournfultrumpet.start();
  162.       heaven2_mc._y = heaven1_mc._y;
  163.       heaven2_mc._x = heaven1_mc._x;
  164.    }
  165. };
  166. this.bread_mc.onRelease = function()
  167. {
  168.    this.stopDrag();
  169.    if(this.hitTest(target7_mc) == true)
  170.    {
  171.       soundTrumpet.start();
  172.       gotoAndStop(95);
  173.       bread_mc._y = bread1_mc._y;
  174.       bread_mc._x = bread1_mc._x;
  175.    }
  176.    else
  177.    {
  178.       soundMournfultrumpet.start();
  179.       bread_mc._y = bread1_mc._y;
  180.       bread_mc._x = bread1_mc._x;
  181.    }
  182. };
  183. this.forgive_mc.onRelease = function()
  184. {
  185.    this.stopDrag();
  186.    if(this.hitTest(target8_mc) == true)
  187.    {
  188.       soundCheering1.start();
  189.       gotoAndStop(96);
  190.       forgive_mc._y = forgive1_mc._y;
  191.       forgive_mc._x = forgive1_mc._x;
  192.    }
  193.    else
  194.    {
  195.       soundCrash3.start();
  196.       forgive_mc._y = forgive1_mc._y;
  197.       forgive_mc._x = forgive1_mc._x;
  198.    }
  199. };
  200. this.trespass_mc.onRelease = function()
  201. {
  202.    this.stopDrag();
  203.    if(this.hitTest(target9_mc) == true)
  204.    {
  205.       soundTrumpet.start();
  206.       gotoAndStop(97);
  207.       trespass_mc._y = trespass1_mc._y;
  208.       trespass_mc._x = trespass1_mc._x;
  209.    }
  210.    else
  211.    {
  212.       soundMournfultrumpet.start();
  213.       trespass_mc._y = trespass1_mc._y;
  214.       trespass_mc._x = trespass1_mc._x;
  215.    }
  216. };
  217. this.temptation_mc.onRelease = function()
  218. {
  219.    this.stopDrag();
  220.    if(this.hitTest(target10_mc) == true)
  221.    {
  222.       soundCheering1.start();
  223.       gotoAndStop(98);
  224.       temptation_mc._y = temptation1_mc._y;
  225.       temptation_mc._x = temptation1_mc._x;
  226.    }
  227.    else
  228.    {
  229.       soundCrash3.start();
  230.       temptation_mc._y = temptation1_mc._y;
  231.       temptation_mc._x = temptation1_mc._x;
  232.    }
  233. };
  234. this.evil_mc.onRelease = function()
  235. {
  236.    this.stopDrag();
  237.    if(this.hitTest(target12_mc) == true)
  238.    {
  239.       soundTrumpet.start();
  240.       gotoAndStop(99);
  241.       evil_mc._y = evil1_mc._y;
  242.       evil_mc._x = evil1_mc._x;
  243.       this._visible == false;
  244.       this._visible = false;
  245.       will_mc._visible = false;
  246.       will_mc.swapDepths(1);
  247.       evil_mc.swapDepths(1);
  248.       temptation_mc.swapDepths(1);
  249.       trespass_mc.swapDepths(1);
  250.       forgive_mc.swapDepths(1);
  251.       bread_mc.swapDepths(1);
  252.       heaven2_mc.swapDepths(1);
  253.       kingdom_mc.swapDepths(1);
  254.       hallowed_mc.swapDepths(1);
  255.       heaven_mc.swapDepths(1);
  256.    }
  257.    else
  258.    {
  259.       soundMournfultrumpet.start();
  260.       evil_mc._y = evil1_mc._y;
  261.       evil_mc._x = evil1_mc._x;
  262.    }
  263. };
  264.